package com.csy.rabbit.merchant.service;

import com.csy.rabbit.commit.result.Result;
import com.csy.rabbit.merchant.entity.Merchant;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 商家表 服务类
 * </p>
 *
 * @author csy
 * @since 2022-12-09
 */
public interface MerchantService extends IService<Merchant> {


    /**
     * 注册用户
     * @param merchant
     * @return
     */
    Result<String> add(Merchant merchant);

    /**
     * 根据id查询
     * @param merchantId
     * @return
     */
    Result<String> findByMerchantId(String merchantId);

    Result<String> deleteById(String merchantId);
}
